package oj;

import java.util.Scanner;

public class Day44F {
    public static void main(String[] args){
        Scanner sc=new Scanner(System.in);
        while(sc.hasNext()){
            String str=sc.nextLine();
            StringBuilder sb=new StringBuilder();
            for(int i=0;i<str.length();i++){
                if(str.charAt(i)=='_'){
                    i++;
                    sb.append(str.substring(i,i+1).toUpperCase());
                }else{
                    sb.append(str.charAt(i));
                }
            }
            String s=sb.toString();
            System.out.println(s);
        }
    }
}
